//这里是你所有移动端的接口封装
import { get, post } from './index'

/* ------------------- 轮播图 --------------------- */
export const getBanner = () => get('./api/getbanner')
/* --------------- 商品信息（首页） ----------------- */
export const homeGoods = () => get('./api/gethortgoods')
/* ----------------- 商品详情 ---------------------- */
export const goodsInfo = params => get('./api/getgoodsinfo',params)
/* ------------------- 分类 ---------------------- */
export const getCate = () => get('./api/getcates')
/* ------------------ 商品列表 ------------------- */
export const goodsList = params => get('./api/getgoodlist',params)
/* ------------------- 注册 ---------------------- */
export const register = params => post('./api/register',params)
/* ------------------- 登录 ---------------------- */
export const login = params => post('./api/login',params)
/* ------------------- 加入购物车 ---------------------- */
export const addCart = params => post('./api/cartadd',params)
/* ------------------ 购物车列表 ------------------- */
export const cartList = params => get('./api/cartlist',params)
/* ------------------- 删除购物车 ---------------------- */
export const deleteCart = params => post('./api/cartdelete',params)





